#ifndef JSONSERIALIZATOR_H
#define JSONSERIALIZATOR_H

#include <QStringList>
#include "serializator.h"

namespace Core
{

class JSONSerializator : public ISerializator
{
private:
    QStringList data;
public:
    JSONSerializator();

    void beginObject();
    void endObject();

    void writeProperty(const QString& propertyName, const QVariant& propertyValue);

    void beginList(const QString& propertyName);
    void writeListItem(const QVariant& item);
    void endList();

    void clear();
    ObjectString result();
};

}

#endif // JSONSERIALIZATOR_H
